package HP;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;

public class DateFomartDemo{
    public static void main(String[] args) throws Exception{
        Date date = new Date();
        DateFormat dateFormat = new SimpleDateFormat();
        String a = dateFormat.format(date);
        System.out.println(a);
    }
}
